home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Audio, Video & Photo
/
MediaCoder 0.6.2.4200
/
MediaCoder-0.6.2.4200.exe
/
htdocs
/
prefs
/
desc.xsl
next >
Wrap
Extensible Markup Language
|
2007-05-13
|
2KB
|
51 lines
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/MediaCoderPrefs">
<strong>Key: </strong>
<xsl:call-template name="GoBranch">
<xsl:with-param name="cur" select="."/>
</xsl:call-template>
</xsl:template>
<xsl:template name="GoBranch">
<xsl:param name="cur"/>
<xsl:value-of select="$cur/node/@key"/>
<!--Loop to the deepest level-->
<xsl:if test="$cur/node/node/@key">.<xsl:call-template name="GoBranch">
<xsl:with-param name="cur" select="$cur/node"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="string-length($cur/node/node/@key)=0">
<!--Here we come to the deepest level-->
<xsl:if test="$cur/node/@type='int' or $cur/node/@type='float'">
<xsl:if test="$cur/node/@min or $cur/node/@max">
<strong>Range: </strong><xsl:value-of select="$cur/node/@min"/>~<xsl:value-of select="$cur/node/@max"/>
</xsl:if>
</xsl:if>
<xsl:if test="$cur/node/@type='string'">
<strong>Max Length: </strong><xsl:value-of select="$cur/node/@max"/>
</xsl:if>
<xsl:if test="$cur/node/desc">
<br /><strong>Description:</strong>
<xsl:value-of select="$cur/node/desc"/>
</xsl:if>
<br/>
</xsl:if>
</xsl:template>
</xsl:stylesheet>